package com.hz.monitoring.module.hardware.controller.admin.sensor_sys_type.vo;

import com.hz.monitoring.module.hardware.controller.admin.vo.CustomFields;
import com.hz.monitoring.module.hardware.controller.admin.vo.CustomSensorAttribute;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
* 传感器系统分类 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class SensorSysTypeBaseVO {

    @ApiModelProperty(value = "关联的mcu")
    @NotNull(message = "关联的mcu不能为空")
    private String mcuModel;

    @ApiModelProperty(value = "名称", required = true)
    @NotNull(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "型号", required = true)
    @NotNull(message = "型号不能为空")
    private String model;

    @ApiModelProperty(value = "厂商")
    private String vendor;

    @ApiModelProperty(value = "版本")
    private String edition;

    @ApiModelProperty(value = "传感器属性")
    private List<CustomSensorAttribute> attributeMetadata;

    @ApiModelProperty(value = "传感器上报数据值对应的属性")
    private List<CustomFields> valueMetadata;

    @ApiModelProperty(value = "说明")
    private String specification;



}
